package cn.lingyangwl.agile.file.excel;

import cn.afterturn.easypoi.excel.entity.ExportParams;

import java.util.Collection;
import java.util.HashMap;

/**
 * 用于 一个excel 创建多个sheet
 * @author shenguangyang
 */
public class ExportSheetParams extends HashMap<String, Object> {

    public ExportSheetParams setTitle(ExportParams title) {
        this.put("title", title);
        return this;
    }

    public ExportSheetParams setEntity(Class<?> entity) {
        this.put("entity", entity);
        return this;
    }

    public ExportSheetParams setData(Collection<?> data) {
        this.put("data", data);
        return this;
    }
}
